package com.lenovo.userprofile

import java.text.SimpleDateFormat
import java.util.Date

import org.apache.spark.sql.SparkSession

object test {
  def main(args: Array[String]): Unit = {
    val sparkSession = SparkSession.builder.master("yarn").appName("ETL_system_mon_4").enableHiveSupport().getOrCreate()
    var now:Date = new Date()
    var dateFormat:SimpleDateFormat = new SimpleDateFormat("yyyy-MM-dd")
    var hehe = dateFormat.format(now)
    println(hehe)
  }
}
